package com.wrl.mmall.service;

import com.wrl.mmall.common.ServerResponse;
import com.wrl.mmall.pojo.Shipping;
import com.github.pagehelper.PageInfo;

public interface IShippingService {

    //新增收货地址
    ServerResponse add(Integer userId, Shipping shipping);
    //删除收货地址
    ServerResponse delete(Integer userId, Integer shippingId);
    //修改收货地址
    ServerResponse update(Integer userId, Shipping shipping);
    //查看收货地址详情
    ServerResponse<Shipping> select(Integer userId, Integer shippingId);
    //查看所有收货地址
    ServerResponse<PageInfo> list(Integer userId, int pageNum, int pageSize);
}
